<template>
  <div class="items">
    <div class="header">
        <span>{{item.cate_info.cate_name}}</span>
      </div>
      <div class="product">
        <div class="thumbnail">
          <img :src="item.goods_info.litpic" alt>
        </div>
        <div class="info">
          <p class="name">{{item.goods_info.title}}</p>
          <p class="price">
            ￥{{item.goods_info.price}}
            <span>x{{item.total_number}}</span>
          </p>
        </div>
      </div>
  </div>
</template>

<script>
export default {
  props: ["item", "type"],
  computed: {}
};
</script>

<style lang="less" scoped>
.items {
  padding: 4vw 0;
  margin-left: 4vw;
  border-bottom: 1px solid #f9f9f9;
  color: #333;
  .header {
    font-size: 4.3vw;
    margin-bottom: 3vw;
    display: flex;
    padding-right: 4vw;
    align-items: center;
    justify-content: space-between;
  }
  .product {
    display: flex;
    .thumbnail {
      width: 30vw;
      height: 30vw;
      margin-right: 3vw;
      img {
        max-width: 100%;
        max-height: 100%;
      }
    }
    .info {
      font-size: 4.3vw;
      .name {
        margin-bottom: 15vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .price {
        span {
          margin-left: 30vw;
          color: #999;
          font-size: 3.5vw;
        }
      }
    }
  }
}
</style>